home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
program
/
n_b_v203.zip
/
MONEY$.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
2KB
|
47 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME MONEY$ .DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
$INCLUDE "DAS-NB01.INC"
$INCLUDE "DAS-NB02.INC"
COLOR 7, 0
CLS
? "┌────────────────────────────────────────────────────────────────
? "│ SetMoneyMask ( Symbol$, Format?, Decimals? )
? "│ fMoney$ ( Amount!, Digits% )
? "├───────────────────────────────────────────────────────────────────
? "│ SEE: INTRNATS.TXT for a a more detailed explanation.
? "└──────────────────────────────────────────────────────────────────────────
?
Amount! = 1234.46
SetMoneyMask "$", 0, 2
PRINT "USA " + fMoney$( Amount!, 4 )
PRINT
SetMoneyMask "Drx.", 3, 0
MID$( pbvUSINGCHRS, 3, 2 ) = ".," ' EUROPEAN STYLE
PRINT "GREECE " + fMoney$( Amount!, 4 )
PRINT
SetMoneyMask "TL", 4, 2
PRINT "TURKEY " + fMoney$( Amount!, 4 )